const koa = require('koa')
const koaParser = require('koa-bodyparser')
const multer = require('koa-multer')
const app = new koa()
const upload = multer()
app.use(koaParser())
app.use(upload.any())
app.use((ctx, next) => {
  console.log('ctx.req===', ctx.req.body)
  ctx.response.body = 'ctx hello'
})
app.listen(9001, () => {
  console.log('koa 参数分析json-urlencode')
})